/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

.copyable {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--halfpad);
  word-break: break-all;
}

.copyable .codicon {
  opacity: 0;
  transition: opacity transform 0.1s;
}
.copyable.icon-only .codicon {
  opacity: 1;
}

.copyable:hover .codicon {
  opacity: 1;
  transform: scale(1.1);
}

@keyframes beat {
  0% {
    transform: scale(1, 1);
  }
  100% {
    transform: scale(1.01, 1.01);
  }
}
.copyable:active {
  animation: beat 0.1s linear backwards;
}

.copyable-success-tooltip {
  max-width: 300px;
  display: flex;
  white-space: nowrap;
}

.copyable-success-overflow {
  overflow: hidden;
  text-overflow: ellipsis;
}
